package com.wanghua.mall.order.openfeign;

import com.wanghua.mall.order.vo.UserReceiveAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author wanghua
 * @create 2021-09-08 12:58
 */
@FeignClient("mall-user")
public interface UserClient {

    /**
     * 根据用户id获取他的收货地址
     *
     * @param userId
     * @return
     */
    @GetMapping("/user/userreceiveaddress/getAddressByUserId/{userId}")
    List<UserReceiveAddressVo> getAddressByUserId(@PathVariable("userId") Long userId);
}
